#include <VideoCapture/VideoCapture.h>


VideoCapture::VideoCapture()
{
    stream = new cv::VideoCapture();
}
VideoCapture::~VideoCapture()
{
    delete stream;
}
void VideoCapture::open(const char *url)
{
    stream->open(url);
}
Frame VideoCapture::read()
{
    cv::Mat img;
    stream->read(img);
    Frame frame;
    frame.rows = img.rows;
    frame.cols = img.cols;
    frame.data = img.data;
    return frame;
}
bool VideoCapture::isOpened()
{
    return stream->isOpened();
}
